<?php
namespace haibao\cms\data\attendance;

Class AttendanceDefine extends \haibao\cms\data\BaseMysql{
	
	public function __construct(){
		parent::__construct('\haibao\cms\model\data\attendance\AttendanceDefine');
	}
	
	public function getAttendanceRecordByClickDate($clickDate,$jobNum){
	    $sql = "select * from AttendanceDefine where ClickDate=%s and JobNum=%s limit 1";
	    return $this->query($sql,array($clickDate,$jobNum))->fetch_assoc();
	}
	
	public function delAttendanceRecord($clickDate,$jobNum){
	    $sql = "delete from AttendanceDefine where ClickDate = %s and JobNum=%s";
	    $this->query($sql,array($clickDate,$jobNum));
	}
}
